/* 
 * File:   celltest.cpp
 * Author: reinhard
 *
 * Created on March 11, 2011, 2:41 PM
 */

#include <stdlib.h>
#include "gtest/gtest.h"
#include "cell.hpp"
#include "game.hpp"
#include "nonenterablecell.hpp"

/*
  Cell(GameInterface* game);
  Cell* getTeleportDestination();
  bool isTeleportCell();
  void setTeleport(Cell* destination);
*/

TEST(CellTest, CellTeleport) {
  Game* a = new Game("Irvan", "test.gag");
  NonEnterableCell* b = new NonEnterableCell(a);

  Cell* c = a->getMaps()->getField()->getCellAt(1,2);
  EXPECT_EQ(a->getMaps()->getField(), c->getContainingMap());
  EXPECT_EQ(1, c->getX());
  EXPECT_EQ(2, c->getY());
  
  delete a;
  delete b;
}

